Skip to content

longPolling: false option - #5154

Merged
boutell merged 2 commits into
mainfrom
pro-8663
Nov 13, 2025
Merged

boutell merged 2 commits into
mainfrom
pro-8663

Conversation

@boutell

@boutell boutell commented Nov 12, 2025

Copy link
Copy Markdown
Member

Good testing is in place: we're using this already at the moment, via a branch dependency, in our public demo.

For user experience, long polling is good. For lighthouse scores when logged in, it is not so good, and some customers may find themselves under similar pressure. Now they have choices.

@boutell
boutell requested a review from BoDonkey November 12, 2025 13:48
@linear

linear Bot commented Nov 12, 2025

Copy link
Copy Markdown

if (Date.now() - start >= (self.options.longPollingTimeout || 10000)) {
if (
self.options.longPolling &&
(Date.now() - start >= self.options.longPollingTimeout)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No fallback needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, no fallback needed, because this is code that preempts making a database query at all if the long polling timer runs out, which isn't relevant in vanilla polling.

@boutell
boutell merged commit ee90bd6 into main Nov 13, 2025
9 checks passed
@boutell
boutell deleted the pro-8663 branch November 13, 2025 13:39
haroun added a commit that referenced this pull request Nov 19, 2025
* main:
  PRO-8708: bring back passing of the actual area options in the form developers expect to see them to custom insert menu item components (#5162)
  adds object of useful error when widget fails to render (#5141)
  add addMissingSchemaFields task (#5101)
  Pro 8360 box field (#5142)
  Pro 8671 fix localize modal (#5156)
  longPolling: false option (#5154)
  PRO-5472: file widget (#5126)
haroun added a commit that referenced this pull request Nov 19, 2025
* main:
  PRO-8708: bring back passing of the actual area options in the form developers expect to see them to custom insert menu item components (#5162)
  adds object of useful error when widget fails to render (#5141)
  add addMissingSchemaFields task (#5101)
  Pro 8360 box field (#5142)
  Pro 8671 fix localize modal (#5156)
  longPolling: false option (#5154)
  PRO-5472: file widget (#5126)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants